package com.zhys.middle.goods.common.request;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import com.zhys.ph.common.pagination.PageConditionInfo;

/**
 * 
 * @ClassName: DefaultPageRequest
 * @Description: 分页查询统一入参
 * @author xuxh
 * @date 2017年11月3日 上午12:28:54
 */
public class DefaultPageRequest<T extends Serializable> extends DefaultRequest {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "分页参数不能为空")
    private PageConditionInfo pageConditionInfo;

    private T condition;

    public T getCondition() {
        return condition;
    }

    public void setCondition(T condition) {
        this.condition = condition;
    }

    public PageConditionInfo getPageConditionInfo() {
        return pageConditionInfo;
    }

    public void setPageConditionInfo(PageConditionInfo pageConditionInfo) {
        this.pageConditionInfo = pageConditionInfo;
    }

    @Override
    public String toString() {
        return "DefaultPageRequest{" + "pageConditionInfo=" + pageConditionInfo + '}'
            + super.toString();
    }
}
